package com.tpo.jnotes.client.layer.controller.commands;

import com.tpo.jnotes.client.lib.action.ICommand;
import com.tpo.jnotes.client.lib.interfaces.IController;

public class DeleteCommand implements ICommand
{
    public static final String DELETE = "DELETE_COMMAND";
    private final IController controller;
    private final int id;

    public DeleteCommand( IController controller, int id )
    {
        this.controller = controller;
        this.id = id;
    }

    @Override
    public void execute()
    {
        controller.delete( id );
    }

}
